//
//  HPlayListView.h
//  HMusicPlayer
//
//  Created by Hament on 14/9/16.
//  Copyright (c) 2014年 HJ. All rights reserved.
//

#import "HView.h"

@class HPlaylistItem,HTriangleView;
@interface HPlayListView : HView<NSTableViewDataSource,NSTableViewDelegate,NSTextFieldDelegate,NSMenuDelegate>





@property (nonatomic,strong)IBOutlet NSTableView * tableV;
@property (nonatomic,strong) NSArray * topGroupArr;//第一分组包含的内容
@property (nonatomic,strong) NSArray * supportDragTypesArr;//支持拖入的类型

@property (nonatomic,strong) NSMutableArray * plistDataSource;// 自定义的播放列表
@property (nonatomic,strong) NSMutableArray * dataSource;// all data
@property (nonatomic,strong) NSMenu *  pTableMenu;
@property (nonatomic,strong) HTriangleView * triangleView;


//排序数据源
//-(void)sortDataSourceWithType:(NSUInteger)sortType;

//刷新数据源
-(void)reloadDataSource;

//处理拖拽文件夹创建playlist
-(void)createPlaylistWithFolderPath:(NSURL*)foUrl handelCount:(int *)handelCount;
//根据一堆外部文件生成hsongitem
-(void)gengrateHsongItemsWithUrl:(NSURL*)fileurl filepath:(NSString*)filepath holdArr:(NSMutableArray**)arr;

//获取当前选择的分类
-(HPlaylistItem*)getCurrentSelectPlaylistItem;

//添加播放符号
-(void)addThePlaySymbol;
@end
